<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-06-27 13:44
 * Modified Time: 2019-06-27 13:44
 * Version: 2.0
 */
return [
	// 预约状态
	'orderAppointmentStatus'  => [
		'create'  => 0,
		'receive' => 1,
		'cancel'  => 2
	],
	'withdrawOrder'           => [
		'barber' => 1,
		'member' => 2
	],
	// 取消订单时间 倒计时
	'orderCancelTimeMin'      => 0,
	//预约取消订单的来源值
	'appointmentCancelStatus' => [
		'member' => 1,
		'barber' => 2,
		'system' => 3
	],
	// 支付方式
	'payment'                 => [
		'wechat'      => 1, // 微信
		'alipay'      => 2, // 支付宝
		'member_card' => 3, // 会员卡
		'cash'        => 4, // 现金
		'bank_card'   => 5, // 刷卡
		'group_buy'   => 6  // 团购
	],
	// 订单状态
	'orderStatus'             => [
		'confirm' => 1,
		'done'    => 2,
		'expire'  => 4,
		'cancel'  => 0
	],
	'royaltyType'             => [
		'service' => 1,
		'goods'   => 2,
		'card'    => 3
	],

	'resourceType'                     => [
		"picture" => 1,
		"video"   => 2
	],
	// 会员卡 类型 和 操作
	'memberCard'                       => [
		'type'     => [
			'handle'   => 1,
			'recharge' => 2,
			'consume'  => 3
		],
		'cardType' => [
			'count'    => 1,   // 次数卡
			'recharge' => 2   // 充值卡
		]
	],
	'yes'                              => 1,
	'no'                               => 0,
	// 角色
	'role'                             => [
		'staff'     => 0,
		'manager'   => 1,
		'barber'    => 2,
		'assistant' => 3,
	],
	//理发师工作时间 值必须为 +1 能被7整除的数字
	'workerDays'                       => 89,
	// 阿里云短信服务
	'aliSms'                           => [
		'access_key_id'     => 'LTAIHAsBJu2d1nr7',
		'access_key_secret' => 'ByQwjgnul44xC1BGM6pJl8pSIjk9t7',
	],
	//短信场景值
	'sms_scene'                        => [
		'register',//app注册                         0
		'receive_member_card',//小程序领取转移会员卡  1
		'pc_login',//pc端登录                        2
		'forget_password',//忘记密码                 3
		'apply_member_card',//小程序办理会员卡        4
		'apply_member_card_app'//app办理会员卡       5
	],

	// 阿里云oss对象存储服务
	'aliOss'                           => [
		'access_key_id'     => 'LTAInk7YKvB1A5sM',
		'access_key_secret' => 'TRHyDVJa8BeBdWnSdkG02GhRKcmdAc',
		'endpoint'          => 'http://oss-cn-qingdao.aliyuncs.com',
		'bucket'            => env('ali_oss_bucket', 'huaxianling-v2')
	],
	'easyWechatApp'                    => [
		'app_id' => 'wx9c39955dd08a4938',
		'secret' => '80d1573b4d4ca9272b6d794a689b465f'
	],
	'purpose'                          => [
		'order' => 1,
	],
	// 信息场景和分类
	'message'                          => [
		'scene'                       => [
			'wx'  => 1,
			'app' => 2
		],
		'type'                        => [
			//订单
			'order' => 1,
			//会员卡
			'card'  => 2,
			//其他
			'other' => 3,
		],
		'sub_type'                    => [
			// 会员卡办卡
			'card_handle'          => 5,
			//新订单
			'new_order'            => 6,
			// 会员卡消费
			'card_consume'         => 7,
			// 会员卡充值
			'card_recharge'        => 15,
			// 订单取消
			'order_cancel'         => 8,
			// 理发师申请取消订单
			'order_cancel_apply'   => 9,
			// 拒绝申请取消订单
			'refuse_cancel_apply'  => 13,
			// 撤回申请取消订单
			'destroy_cancel_apply' => 14,
			// 订单完成
			'order_finish'         => 10,
			// 排班通知
			'barber_schedule'      => 12
		],
		'new_order'                   => "新订单通知",
		"order_finish"                => "订单完成通知",
		"card_handle"                 => "开卡通知",
		"barber_cancel_apply"         => "理发师申请取消订单通知",
		'member_cancel_apply'         => "用户申请取消订单通知",
		"barber_refuse_cancel_apply"  => "理发师拒绝申请取消订单通知",
		'member_refuse_cancel_apply'  => "用户拒绝申请取消订单通知",
		"barber_destroy_cancel_apply" => "理发师撤回申请取消订单通知",
		'member_destroy_cancel_apply' => "用户撤回申请取消订单通知",
		"card_consume"                => "会员卡消费通知",
		"card_recharge"               => "会员卡充值通知",
		'order_cancel'                => "订单取消通知",
		'barber_schedule'             => "理发师排班通知",
		'wx_image'                    => 'https://huaxianling-v2.oss-cn-qingdao.aliyuncs.com/Wechat/picture/cardImg.png'
	],
	'roleStringLength'                 => 8,
	// 角色判定的8未字符串
	'roleBool'                         => [
		'staff'     => '00000000',
		'manager'   => '00000001',
		'barber'    => '00000010',
		'assistant' => '00000100',
	],
	// 预约订单来源
	'appointment'                      => [
		'online'              => 1, // 线上预约
		'offline'             => 2, // 线下预约
		'store'               => 3,  // 直接到店
		'member_card_offline' => 4  // 会员卡线下消费
	],
	// 理发店等级计算是否包含线下订单
	'storeLevelIncludingOfflineOrders' => true,
	// 理发师可预约日期状态值
	'scheduleStatus'                   => [
		'rest'        => 0,  //  休息
		'selectable'  => 1,  //  可预约
		'appointment' => 2,  //  已经有预约
		'forbidden'   => 3  //   禁止 今日之前的日期
	],
	// 订单取消状态
	'cancelStatus'                     => [
		'going'   => 0,
		'agree'   => 1,
		'refuse'  => 2,
		'destroy' => -1
	],
	// 数据中心 理发师查询类型
	'center'                           => [
		'barber' => [
			'amount'    => 1,
			'order'     => 2,
			'portfolio' => 3,
			'fans'      => 4
		]
	],
	// 访客来源
	'visitor_source'                   => [
		'store_search'  => 1,   // 店铺搜索
		'portfolio'     => 2,   // 作品集
		'notice'        => 3,   // 公告
		'activity'      => 4,   // 活动
		'store_master'  => 5,  // 店铺主页
		'barber_master' => 6,   // 理发师主页
		'out_side'      => 7
	],

	// 昨日经营数据
	'center_data'                      => [
		"order_num_rate"   => [
			"name" => "订单数",
			"unit" => "笔"
		],
		"amount_rate"      => [
			"name" => "平均客单价",
			"unit" => "元"
		],
		"fans_rate"        => [
			"name" => "新增粉丝",
			"unit" => "人"
		],
		"visit_rate"       => [
			"name" => "访客数",
			"unit" => "人"
		],
		"visit_trans_rate" => [
			"name" => "转化率",
			"unit" => "%"
		],
		"good_order_rate"  => [
			"name" => "好评率",
			"unit" => "%"
		],
		"new_member_rate"  => [
			"name" => "新增会员",
			"unit" => "个"
		],
		"point_order_rate" => [
			"name" => "指定用户比",
			"unit" => "%"
		],
		"portfolio_rate"   => [
			"name" => "新发作品",
			"unit" => "个"
		],
	],
	'flowerCoinDefault'                => '10',
	// 老会员卡导入审核是否开启
	'orlMemberCardIsVerify'            => true,
	// 会员卡折扣比率 8折卡 = 8*10
	'discountRate'                     => 10,
	'dataCenter'                       => [
		'isToday' => true
	],
	// 极光推送
	'j_push_production'                => env('J_PUSH_PRODUCTION', false),
	// bill账单类型
	'bill'                             => [
		'category' => [
			'order' => 1,
			'card'  => 2,
			'goods' => 3
		],
		'type'     => [
			'individual'   => 1,  // 散客
			'service_card' => 2,  // 卡消
			'goods'        => 3,  // 商品
			'card_handle'  => 4,  // 办卡
			'recharge'     => 5   // 充值
		]
	],
	'live_top_coin' => 50,
	// 检测发礼物的时间
	'check_live_is_send_gift_time' => env('CHECK_LIVE_IS_SEND_GIFT_TIME', 30),
	// 推广送的币
	'spread_coin_live' => 1,
	'live_nums_can_see' => env('LIVE_NUMS_CAN_SEE',true),


	// 开发中的接口配置
	'app_function_doing_debug' => true,
];
